import requests
# 豆瓣top250
# 请求头
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
}
resp = requests.get("https://movie.douban.com/top250", headers=headers)
print(resp.status_code)
print(resp.text)
